<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>编辑文章信息</title>
    	<link rel="stylesheet" type="text/css"
			href="<%=basePath%>jslib/bootstrap/css/bootstrap.css">
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>css/theme.css">
			<link rel="stylesheet" type="text/css" href="<%=basePath%>jslib/bootstrap/css/bootstrap-datetimepicker.min.css">
		<link rel="stylesheet"
			href="<%=basePath%>jslib/font-awesome/css/font-awesome.css">
		<script src="<%=basePath%>jslib/jquery-1.7.2.min.js"
			type="text/javascript"></script>
		<script src="<%=basePath%>jslib/bootstrap/js/bootstrap.min.js"></script>
		<script src="<%=basePath%>jslib/bootstrap/js/bootstrap-datetimepicker.min.js"></script>
			<script src="<%=basePath%>jslib/bootstrap/js/bootstrap-datetimepicker.zh-CN.js"></script>
            
		<script type="text/javascript">
			$(document).ready(function(e) {
                
				loadfirstnav();
				
				
            });
            
            function loadfirstnav(){
            
            	$.ajax({
					
					type:"post",
					url:"<%=basePath%>sys/art?cmd=firstAndsecond",
					data:"nid="+$("#nid").val(),
					success: function(msg){
					var navfirst=$.parseJSON(msg);
						
					$("#firstname").val(navfirst.f)	;
						$("#secondname").val(navfirst.s);
						
							//$("#navfirst").append("<option value='"+navfirst[i].nid+"'>"+navfirst[i].name+"</option>");	
						
					}
				});
            }
		</script>

  </head>
  
  <body class="content1">
		<div class="header">
			<h1 class="page-title">
				查看文章信息
			</h1>
		</div>

		<ul class="breadcrumb">
			<li>
				<a href="index.html">文章管理</a>
				<span class="divider">/</span>
			</li>
			<li class="active">
				查看文章信息
			</li>
		</ul>

		<div class="container-fluid">
			<div class="row-fluid">
				<form method="post" action="<%=basePath%>sys/art?cmd=edit">
					<div class="btn-toolbar">
						
						<a href="<%=basePath%>sys/art?cmd=toauditing" class="btn">返回</a>

					</div>

					<div class="well">
						<div class="tab-pane active in">
						
						<input type="hidden" name="nid" value="${article.nid}" id="nid"/>
						<label>
								一级导航名称：
							</label>
							<input type="text" name="firstname" id="firstname" value="" readonly/>
							<label>
								二级导航名称：
							</label>
							<input type="hidden" name="aid" value="${article.aid}" />
							
							<input type="text" name="secondname" value="" id="secondname"
								readonly="readonly">
							<label>
								文章标题：
							</label>
							<input type="text" name="title" maxlength="100" value="${article.title}"
								style="width: 500px;" readonly="readonly">
							<label>
								发布时间：
							</label>	
								
							
                   				 <input size="16" type="text"   name="createdate" value="${article.createdate}" readonly="readonly">
                    			
               			
							<label>
								作者：
							</label>
							<input type="text" name="author" maxlength="20" value="${article.author}" readonly="readonly">

						
			<script type="text/javascript">
   
	$('.form_date').datetimepicker({
        language:  'zh-CN',
        weekStart: 1,
        todayBtn:  1,
		autoclose: 1,
		todayHighlight: 1,
		startView: 2,
		minView: 2,
		forceParse: 0,

		 format: "yyyy-mm-dd",
        autoclose: true,
      
        pickerPosition: "bottom-left"
    })
   </script>					
							
							
								
						
							<div style="color: red">
								${msg}
							</div>
						</div>
					</div>
				</form>
			</div>
		</div>
	</body>
</html>
